package com.example.controller;

import com.example.common.LayuiResultJson;
import com.example.common.R;
import com.example.service.PrintManageService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * User: ljc
 * Date: 2022/07/03 16:00
 * Description:
 * Version: V1.0
 */
@RequestMapping("/dygl")
@RestController

public class PrintManageController {
    @Autowired
    private PrintManageService printManageService;

    //入库单
    @GetMapping(value = "/queryRuKuDan")
    public LayuiResultJson queryRuKuDan(Integer page, Integer limit,String medicine_name) {
        return printManageService.queryRuKuDan(page, limit,medicine_name);
    }

    //出库单
    @GetMapping(value = "/queryChuKuDan")
    public LayuiResultJson queryChuKuDan(Integer page, Integer limit) {
        return printManageService.queryChuKuDan(page, limit);
    }

}
